package com.example._03vehicle.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class UserRegParam {
    //@NotNull(message="用户名不能为null")
    //@Size(min=1,max=6,message="用户名长度在1-8之间")//左右闭区间
    //@Pattern( regexp="^([a-zA-Z]{14}|[\\u4e00-\\u9fa5]{8})$",message = "最长为英文14个字数或汉字8个字数")
    @ApiModelProperty(value="用户名",required = true,example = "admin" )
    private String username;
   @ApiModelProperty(value="密码",required = true,example = "123456")
    private String password;
   @Email
   @ApiModelProperty(value="邮箱",required = true,example = "123456@qq.com")
    private String email;
    @ApiModelProperty(value="手机号",required = true,example = "12345678901")
    private String phone;

}
